package com.awise.http;

/**
 * Created by Rover on 17/2/20.
 */

public interface SocketCallback {

    /**
     * 当建立连接是的回调
     */
    public abstract void connected();

    /**
     * 当获取网络数据回调接口
     *
     * @param buffer
     *            字节数据
     */
    public abstract void receive(byte[] buffer);

    /**
     * 当断开连接的回调
     */
    public abstract void disconnect();

}
